package com.ces.knacky.model;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.ces.knacky.framework.model.AbstractBaseEntity;

/** @author Hibernate CodeGenerator */
public class PaymentStatus extends AbstractBaseEntity implements Serializable {
    /** nullable persistent field */
    private com.ces.knacky.model.TransactionTable transaction;

    /** full constructor */
    public PaymentStatus(String description, com.ces.knacky.model.TransactionTable transaction) {
        this.description = description;
        this.transaction = transaction;
    }

    /** default constructor */
    public PaymentStatus() {
    }
 
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public com.ces.knacky.model.TransactionTable getTransaction() {
        return this.transaction;
    }

    public void setTransaction(com.ces.knacky.model.TransactionTable transaction) {
        this.transaction = transaction;
    }

    public boolean equals(Object other) {
        if ( !(other instanceof PaymentStatus) ) return false;
        PaymentStatus castOther = (PaymentStatus) other;
        return new EqualsBuilder()
            .append(this.getId(), castOther.getId())
            .isEquals();
    }
}
